/*
 * @Author: Leo.wang wanglizhigs@163.com
 * @Date: 2024-01-08 09:10:32
 * @LastEditors: Leo.wang wanglizhigs@163.com
 * @LastEditTime: 2024-01-08 09:19:20
 * @FilePath: /tuberculosis_screening_display_system/src/router/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { createRouter, createWebHistory } from 'vue-router';

const routes = [
  {
    path: '/province/:code',
    name: 'province',
    component: () => import('@/views/province.vue')
  },
  {
    path: '/city/:code',
    name: 'city',
    component: () => import('@/views/city.vue')
  },
  {
    path: '/district/:code',
    name: 'district',
    component: () => import('@/views/district.vue')
  },
  {
    path: '/town/:code',
    name: 'town',
    component: () => import('@/views/town.vue')
  },
]

export default  createRouter({
  history: createWebHistory(),
  routes
});